<?php
class Mozg_Request_Collection
{
    /**
		список объектов запроса
     */
    static private $_requests = array();

    static public function Get($protName)
    {
        $requestClassName = 'Mozg_Request_' .$protName;
        
        if (! isset(self::$_requests[$protName]) || ! (self::$_requests[$protName] instanceof $requestClassName)) {
            self::$_requests[$protName] = new $requestClassName();
        }
        
        return self::$_requests[$protName];
    }
}